package com.example.demo.service.impl;

import com.example.demo.domain.Tiaoxiu;
import com.example.demo.domain.Vo.TiaoxiuVo;
import com.example.demo.mapper.TiaoxiuMapper;
import com.example.demo.service.ITiaoxiuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TiaoxiuServiceImpl implements ITiaoxiuService {

    @Autowired
    public TiaoxiuMapper tiaoxiuMapper;

    /**
     * 查询用户
     * @param tiaoxiu
     * @return
     */
    @Override
    public List<TiaoxiuVo> selectTiaoxiu(Tiaoxiu tiaoxiu) {
        return tiaoxiuMapper.selectTiaoxiu(tiaoxiu);
    }

    /**
     * 增加角色
     * @param tiaoxiu
     */
    @Override
    public void insertTiaoxiu(Tiaoxiu tiaoxiu) {
        tiaoxiuMapper.insertTiaoxiu(tiaoxiu);
    }

    /**
     * 修改出差申请
     * @param tiaoxiu
     */
    @Override
    public void updateTiaoxiuById(Tiaoxiu tiaoxiu) {
        tiaoxiuMapper.updateTiaoxiuById(tiaoxiu);
    }

    /**
     * 删除出差申请
     * @param tiaoxiuId
     */
    @Override
    public void delTiaoxiuById(long tiaoxiuId) {
        tiaoxiuMapper.delTiaoxiuById(tiaoxiuId);
    }


}
